package com.atguigu.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Provider2Controller {


     @Value("${server.port}")
      private String port2;

    @GetMapping("/find/{id}")
    public String find2(@PathVariable("id")Integer id){
        return "新的端口号是"+id+"" + port2;
    }

}
